package com.pinoc.demo.enums;

import lombok.Getter;

@Getter
public enum ReturnCode {

	/**
	 * 成功
	 */
	SUCCESS(0000, "成功"),

	/**
	 * 响应失败
	 */
	FAILED(-10, "响应失败"),

	/**
	 * 参数校验失败
	 */
	VALIDATE_FAILED(-20, "参数校验失败"),

	/**
	 * 未知错误
	 */
	ERROR(-500, "未知错误");

	private int code;

	private String msg;

	ReturnCode(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}
}
